package com.bocai.service.impl;

import com.bocai.bean.TAdInfo;
import com.bocai.mapper.TAdInfoMapper;
import com.bocai.service.IAdInfoService;
import com.bocai.vo.TAdInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdInfoServiceImpl implements IAdInfoService {

    @Autowired
    private TAdInfoMapper tAdInfoMapper;

    @Override
    public List<TAdInfoVo> selectAdd() {
        return tAdInfoMapper.selectAll();
    }

    @Override
    public List<TAdInfo> selectAddTwo() {
        return tAdInfoMapper.selectAddTwo();
    }

    @Override
    public int insertAdInfo(TAdInfo adInfo) {
        return tAdInfoMapper.insertSelective(adInfo);
    }

    @Override
    public int updateAdInfo(TAdInfo adInfo) {
        return tAdInfoMapper.updateByPrimaryKeySelective(adInfo);
    }


}
